<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>收货地址管理-美丽说</title>
	<link rel="stylesheet" href="http://localhost/meilishuo/template/default/css/order.css" />
	<script type="text/javascript" src="http://localhost/meilishuo/template/default/js/address.js"></script>
	<script src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="http://localhost/meilishuo/template/default/js/address2.js" type="text/javascript" charset="utf-8"></script>
	
	<script language="javascript">
		var s=["s1","s2","s3"];
		var opt0 = ["请选择省","请选择市","请选择县（区）"];
		function setup(){
		 for(i=0;i<s.length-1;i++)
		  document.getElementById(s[i]).onclick=new Function("change("+(i+1)+")");
		 change(0);
		}
		window.onload=function(){
		setup()	
			
		};
		$(function(){
			
			$('.dj').live('click',function(){
				var dj = $('#s1').val() + '省,' + $('#s2').val() + '市,' + $('#s3').val();
				alert(dj);	
			})
		})
</script>
</head>
<body>
	<!--顶部登录注册区域开始-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script type="text/javascript" src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js">
	
</script>
<script type="text/javascript">
	$(function(){
		$("#nav .outer .container .top_cate").hover(function(){
			$(this).children('.second_stage').show();
		},function(){
			$(this).children('.second_stage').hide();
		})
	})
</script>
<!--顶部登录注册区域开始-->
	<div id="top">
		<div class="head">
			<ul class="container">
				    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
					<li><a class="out" href="<?php echo U('Member/out');?>">退出</a></li>
					<li class="myself"><a  href=""><img src="http://localhost/meilishuo/template/default/img/my_face.jpg" class="my_face" alt="" /><?php echo $hd['session']['username'];?></a></li>
					<li><a href=""><span class="my_love"></span>我的喜欢</a></li>
				<?php }else{ ?>
				<li><a class="first" href=""><span class="weixin"></span>微信登陆</a></li>
				<li><a href=""><span class="qq"></span>QQ登陆</a></li>
				<li><a href="<?php echo U('Member/login');?>">登陆</a></li>
				<li><a href="<?php echo U('Member/register');?>">注册</a></li>
				<?php } ?>
				<li><a href="<?php echo U('Cart/ajax_add_cart');?>"><span class="my_car"></span>我的购物车<i class="num">    <?php if($_SESSION['cart']['goods']){ ?> <?php  echo count($_SESSION['cart']['goods']) ?><?php }else{ ?>0<?php } ?> </i></a></li>
				<li><a href="<?php echo U('Porder/index');?>"><span class="my_order"></span>我的订单</a></li>
				<li><a href=""><span class="download"></span>下载App</a></li>
				<li><a class="custom" href="">客户服务</a></li>
			</ul>
		</div>
	</div>
	<!--顶部登录注册结束-->
	<!--搜索区域开始-->
		<div id="search"><!--search-->
			<div class="outside"><!--outside-->
				<a class="logo" href=""></a>
				<div class="container"><!--container-->
					<div class="baobei">
						<a href="" class="cat">
							宝贝<span class="triangle"></span>
						</a>
					</div><!--baobei-->
					<div class="magnifier"></div>
					<input placeholder="搜索流行商品" class="search_content" type="text" />
					<input class="sub" type="submit" value="搜索" />
				</div><!--container-->
			</div><!--outside-->
		</div><!--search-->
	<!--搜索区域结束-->
	
	<!--导航条开始-->
	<div id="nav">
		<div class="outer">
			<ul class=container>
				<li><a class="first" href="<?php echo U('Index/index');?>">首页</a></li>
				<?php $cate=K('Category')->get_all_data(array('pid'=>0));
		
		foreach ($cate as $k => $v) {
			$cate[$k]['son']=K('Category')->get_all_data_notree(array('pid'=>$v['cid']));
			foreach ($cate[$k]['son'] as $key => $value) {
				$cate[$k]['son'][$key]['son']=K('Category')->get_all_data_notree(array('pid'=>$value['cid']));
			}
		} ?>
				<?php foreach ($cate as $k=>$v){?>
				<li class="top_cate">
					<a class="" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?><span class="triangle"></span></a>
					<div class="second_stage">
						<?php foreach ($v["son"] as $key=>$value){?>
						<a href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a>
						<?php }?>
					</div><!--second_stage-->
				</li>
				<?php }?>
			</ul><!--container-->
		</div><!--outer-->
	</div><!--nav-->

	<!--导航条结束-->

	<!--导航条结束-->
	<!--我的收货地址-->
	<div id="order_head">
		<p><a href="<?php echo U('Index/index');?>">美丽说</a>>
		<a href="<?php echo U('Porder/index');?>">我的美丽说订单</a>>
		我的收货地址</p>
	</div>
	
	
	<!--我的收货地址结束-->
	<!--我的收货地址主体内容部分开始-->
	<div id="order">
		<ul class="left">
			<li><a href="<?php echo U('Porder/index');?>">已买到的商品</a></li>
			<li><a href="">我的购物车</a></li>
			<li><a class="select" href="">我的收货地址</a></li>
			<li><a href="">我的优惠券</a></li>
			<li><a href="">退款/退货</a></li>
			<li><a href="">售后</a></li>
			<li  class="last"><a href="">我的投诉</a></li>
		</ul><!--left-->
		<div class="right">
			<div class="address_title">
				<span style="width: 110px;">收货人</span>
				<span style="width: 316px;">收货地址</span>
				<span style="width: 57px;">邮政编码</span>
				<span style="width: 236px;">联系电话</span>
				<span style="width: 101px;">操作</span>
			</div><!--address_title-->
			
			<?php foreach ($data as $k=>$v){?>
				<div style="position: relative;" class="address_info">
					<span style="width: 110px;"><?php echo $v['ctc'];?></span>
					<span style="width: 316px;"><?php echo $v['address'];?></span>
					<span style="width: 57px;">100000</span>
					<span style="width: 236px;"><?php echo $v['tel'];?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    <?php if($v['defau']){ ?>默认地址<?php }else{ ?><a href="<?php echo U('address/set_defau',array('addressid'=>$v['addressid']));?>">设为默认</a><?php } ?>  </span>
					<span style="width: 101px;"><a href="">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a class="del" href="javascript:;">删除</a>
					</span>
					<!--弹出提示框-->
							<div style="top: -30px;left: 300px;" class="del_one">
								<a href="javascript:;" style="float: right;background: none; width: 20px;" class="click"><img style="width: 18px;height: 18px;" src="http://localhost/meilishuo/template/default/img/click.jpg" alt="" /></a>
								<h4>提示</h4>
								<p>您是否要删除地址？</p>
								<div>
									<a style="margin-right:10; color: white;width: 30px;" class="con" href="<?php echo U('Address/del',array('addressid'=>$v['addressid']));?>">确定</a>
									<a style="margin: 0; width: 30px;background: #ccc;" class="canc" href="javascript:;">取消</a>
								</div>
			
							</div>
							<!--弹出提示框-->
				</div><!--address_info-->
			<?php }?>
		<!--新增/编辑收货地址开始-->
			<form action="<?php echo U('Address/add');?>" method="post">
				<div class="container">
					<br />
					<br />
					<br />
					<p>新增/编辑收货地址：</p>
					<p><span>收货人姓名：</span><input name="ctc" type="text" /></p>
					<p><span>联系电话：</span><input name="tel" type="text" /></p>
					<p><span>所在地：</span>
						<select id="s1" name="province">
						<option>省份</option>
						</select>
						<select id="s2" name="city">
							<option>地级市</option>
						</select>
						<select id="s3" name="county">
							<option>市、县级市、县</option>
						</select>
					</p>
					
					
					
					<p><span>街道地址：</span><input name="street" class="long" type="text" /></p>
					<p><span>邮政编码：</span><input name="code" type="text" /></p>
					<label class="checkbox-inline">
  <input class="tick" type="checkbox" id="inlineCheckbox1" value="1">设为默认
    </label>
    				<p><input class="save" type="submit" value="保存地址" /></p>
				</div><!--container-->
				
			</form>
		</div><!--right-->
		
		<!--新增/编辑收货地址结束-->
	</div><!--order-->
	
	
	<!--我的收货地址主体内容部分开始结束-->
	
		<!--尾部开始-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--尾部开始-->
	<div id="last">
		<ul class="head">
			<li class="first">
				<p class="title">4000-800-577</p>
				<p>美丽说客服热线</p>
				<p class="time">周一至周日：08:00-22:00</p>
			</li>
			<li>
				<p class="title">用户帮助</p>
				<a href="">新手指南</a>
				<a href="">网站地图</a>
				<a href="">意见反馈</a>
			</li>
			<li>
				<p class="title">关于我们</p>
				<a href="">关于美丽说</a>
				<a href="">联系我们</a>
				<a href="">加入美丽说</a>
				<a href="">商家进驻</a>
				<a href="">商家推广</a>
			</li>
			<li class="focus">
				<p class="title">关注我们</p>
				<a href=""><span class="xin"></span>新浪微博</a>
				<a href=""><span class="qq"></span>QQ空间</a>
				<a href=""><span class="teng"></span>腾讯微博</a>
			</li>
			<li class="">
				<p class="title">美丽说微信服务号</p>
				<img src="http://localhost/meilishuo/template/default/img/er.jpg" alt="" />
				
			</li>
			<li class="last">
				<p class="title">美丽说客户端下载</p>
				<a href=""><img src="http://localhost/meilishuo/template/default/img/download.png" alt="" /></a>
				
			</li>
		</ul><!--head-->
		<ul class="flink">
			<li>友情链接：</li>
			<li><a href="">乐淘网</a></li>
			<li><a href="">马可波罗悠哉旅游网</a></li>
			<li><a href="">优惠券应用汇</a></li>
			<li><a href="">爱乐活蜜芽宝贝</a></li>
			<li><a href="">趣分期大学生分期购物</a></li>
			<li><a href="">名鞋库</a></li>
			<li class="more"><a href="">更多&gt;&gt;</a></li>
		</ul><!--flink-->
		<div class="record">
			<p>Copyright ©2015 Meilishuo.com<a href="">电信与信息服务业务经营许可证100798号</a><a href="">企业法人营业执照</a>京ICP备11031139号  京公网安备110108006045 </p>
			<p>客服邮箱：kf@meilishuo.com  客服电话：4000-800-577  文明办网文明上网举报电话：010-82615762<a href="">违法不良信息举报中心</a><a href="">我最喜爱的人民警察评选&gt;&gt;</a></p>
		</div><!--record-->
	</div><!--last-->
	
	<!--尾部结束-->
	
	<!--尾部结束-->
</body>
</html>